package main

import (
	"dataService/controllers"
	"github.com/astaxie/beego"
	"rpcServerService"
)

//		Objects

//	URL					HTTP Verb				Functionality
//	/object				POST					Creating Objects
//	/object/<objectId>	GET						Retrieving Objects
//	/object/<objectId>	PUT						Updating Objects
//	/object				GET						Queries
//	/object/<objectId>	DELETE					Deleting Objects

var rss *rpcServerService.RpcServerService

func main() {
	rss = rpcServerService.NewRpcServerService()
	go rss.StartMonitor()

	beego.RESTRouter("/aircraft", &controllers.AircraftController{})
	beego.Run()
}
